.news-nav {
  width: 160px;
  padding-bottom: 0;
  margin-bottom: 0;

  h2 {
    font-size: 18px;
    margin: 0 -20px;
    padding: 0 20px 15px;
    border-bottom: 1px solid #ebebeb;
  }

  ul {
    li {
      margin: 0 -20px;
      font-size: 16px;
      border-bottom: 1px solid #ebebeb;

      &:last-child {
        border-bottom: none;
      }

      a {
        padding: 15px 20px;
        display: block;
        color: #666;

        &:hover {
          display: block;
          background-color: #ebebeb;
        }
      }

      &.active {
        a {
          background-color: $d-text-color-hover;
          color: #fff;
        }
      }
    }
  }
}

.news-left {
  width: 740px;
  margin-left: 20px;
}

@media (min-width: 0) and (max-width: 1200px) {
  .news-nav {
    width: 100%;
    display: flex;
    overflow-y: hidden;
    overflow-x: auto;

    h2 {
      display: none;
    }

    ul {
      display: flex;
      white-space: nowrap;

      li {
        margin: 0;
        border-bottom: 0;
        border-radius: 50px;
        overflow: hidden;

        a {
          padding: 5px 10px;
        }
      }
    }
  }

  .news-left {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
  }
}
